package com.sun.sentinel.feign;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

//@FeignClient(name = "nacos-service", fallback = HelloFeignClientFallback.class)
@FeignClient(name = "nacos-service", fallbackFactory = HelloFeignClientFallbackFactory.class)
public interface HelloFeignClient {

    @GetMapping("/hi/{name}")
    String sayHi(@PathVariable String name);

}
